﻿// <copyright file="ITrackHandler.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-11-27</date>
// <summary>ITrackHandler interface definition</summary>

namespace Microsoft.WebAnalytics.Contracts
{
    using System;
    using System.Windows;    
    
    /// <summary>
    /// Track Handler Interface
    /// </summary>
    public interface ITrackHandler
    {
        /// <summary>
        /// Track an event
        /// </summary>
        /// <param name="associatedObject">the associated object</param>
        /// <param name="analyticsEvent">the event to log</param>
        /// <param name="eventArgs">the event arguments</param>
        void Track(
            FrameworkElement associatedObject, 
            AnalyticsEvent analyticsEvent, 
            EventArgs eventArgs);
    }
}
